package com.example.design.shejimoshi.action.postprocessor;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Description Websocket后置处理器
 * @date 2023/3/21 14:37
 * @Author liuzhihui
 * @Version 1.0
 */
@Slf4j
@Component
public class WebsocketAlarmPostProcessor implements AlarmPostProcessor {
    @Override
    public void postProcessBeforeInitialization(AlarmBO alarmBO) {

    }

    @Override
    public void postProcessAfterInitialization(AlarmBO alarmDO) {
        log.debug("websocket推送报警记录：{}", alarmDO);
//        WebsocketPushUtil.send(WebSocketConstants.DEVICE_ALARM_RECORD_MSG, JSON.toJSONString(alarmDO));
    }
}
